The TUnitData Structure
You use theTUnitData
structure to describe the data being sent with theOTSndUData
function and the data being read with theOTRcvUData
function; you pass this structure as a parameter to each of these functions. When sending data you must initialize thebuf
andlen
fields of all theTNetbufs
. When receiving data, you must initialize thebuf
andmaxlen
fields of all theTNetbufs
.The
TUnitData
structure is defined by theTUnitData
type.
struct TUnitData { TNetbuf addr; TNetbuf opt; TNetbuf udata; }; typedef struct TUnitData TUnitData;
Field Description
addr
- A
TNetbuf
structure for address information.opt
- A
TNetbuf
structure for option information.udata
- A
TNetbuf
structure for data.